/**
 * 说明：
 * 创建人：pluto
 * 创建时间：2018/8/9
 */

var AdService = function (request) {
    this.listOfPage = function(param){
        return request.post("v0/ad/list/page", param);
    };
    this.edit = function(param){
        return request.post("v0/ad/edit", param);
    };
    this.enable = function(id){
        return request.get("v0/ad/enable/"+id);
    };
    this.delete = function(id){
        return request.delete("v0/ad/delete/"+id);
    };
};
angular.module("app.system.ad.service",[]).service("AdService", AdService);

